﻿Ext.define('yzmh.view.diqu.Edit', {
    extend: 'Ext.window.Window',
    alias: 'widget.diquedit',

    requires: ['Ext.form.Panel'],

    title: '编辑地区',
    layout: 'fit',
    autoShow: true,
    height: 341,
    width: 480,

    initComponent: function () {
        this.items = [
            {
                xtype: 'form',
                border: true,
                frame: true,
                width: 450,
                bodyPadding: 5,
                fieldDefaults: {
                    labelAlign: 'left',
                    labelWidth: 90,
                    anchor: '100%'
                },
                items: [{xtype:'hidden',name:'id'},
                    {
                        xtype: 'textfield',
                        allowBlank: false,
                        name: 'diqu',
                        fieldLabel: '类别名称'
                    },
                    {
                        xtype: 'textfield',
                        allowBlank: false,
                        name: 'filename',
                        fieldLabel: '文件名称'
                    }
                ]
            }
        ];

        this.buttons = [
            {
                text: '保存',
                action: 'save'
            },
            {
                text: '取消',
                scope: this,
                handler: this.close
            }
        ];

        this.callParent(arguments);

    }
});
